﻿<Window x:Class="KTool2.SearchWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Search" Height="310" Width="400"
        FontFamily="Lucida Sans Unicode"
        DataContext="{Binding RelativeSource={RelativeSource Self}}" 
        Icon="/KTool 2;component/Images/Rate.png">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="2*"/>
        </Grid.ColumnDefinitions>
        
        <TextBox Name="txtSearch" Grid.ColumnSpan="2" Margin="20, 5, 20, 5"
                 KeyDown="txtSearch_KeyDown"></TextBox>
        
        <ListView Name="lstResult" Grid.Row="1" Margin="5"
                  ItemsSource="{Binding ResultItemList}"
                  SelectionChanged="lstResult_SelectionChanged"
                  FontSize="15">
            <ListView.View>
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn Width="90" DisplayMemberBinding="{Binding Name}">
                            <GridViewColumn.Header>
                                <TextBlock FontSize="11">Kanji Result</TextBlock>
                            </GridViewColumn.Header>
                        </GridViewColumn>
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>

        <GroupBox Grid.Row="1" Grid.Column="1" Margin="5" Header="Details">
            <StackPanel >
                <StackPanel.Resources>
                    <Style TargetType="TextBox">
                        <Setter Property="FontSize" Value="13"/>
                        <Setter Property="HorizontalAlignment" Value="Center"/>
                        <Setter Property="Margin" Value="1"/>
                        <Setter Property="HorizontalAlignment" Value="Center"/>
                        <Setter Property="IsReadOnly" Value="True" />
                        <Setter Property="BorderThickness" Value="0" />
                    </Style>
                </StackPanel.Resources>
                <TextBox Name="txtbkKanji" FontSize="35" FontWeight="Bold">開始</TextBox>
                <TextBox Name="txtbkHiragana" FontSize="20" FontWeight="Bold">かいし</TextBox>
                <TextBox Name="txtbkEnglish">start</TextBox>
                <TextBox Name="txtbkHanNom">khai thủy/thỉ</TextBox>
                <TextBox Name="txtbkViet">bắt đầu</TextBox>
            </StackPanel>
        </GroupBox>
        
        <CheckBox Name="chkbxClipboardTranslate" Grid.Row="2" Grid.ColumnSpan="2" Margin="5"
                  Click="chkbxClipboardTranslate_Click">
            Clipboard translation mode
        </CheckBox>
        
    </Grid>
</Window>
